require "rubygems"
require "activerecord"

require "wondercap/lib/deployment/model/deployment"

class AddStaticDependenciesAttributeToDeployment < ActiveRecord::Migration
  include Wondercap::Deployment
  
  def self.up
    add_column :deployments, :static_dependencies, :text
    Deployment.reset_column_information
    Deployment.find(:all).each do |dep|
      dep.update_attribute :static_dependencies, []
    end
  end
  
  def self.down
    remove_column :deployments, :static_dependencies
  end
  
end